package com.devunion.salon.persistence;

import javax.persistence.*;

/**
 *
 * @author Viktar Liaskovich
 */
@Entity
@Table(name = "payment")
public class Payment extends BasePersistentObject {

    @Column(name = "value", nullable = false)
    private Float value;

    @Column(name = "method", nullable = false)
    private String method;

    public Payment() {
    }

    public Payment(String method) {
        super();
        this.method = method;
    }

    public Float getValue() {
        return value;
    }

    public void setValue(Float value) {
        this.value = value;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
}
